<template>
  <div id="app" class="min-h-screen overflow-x-hidden max-w-full">
    <NuxtLayout>
      <NuxtPage />
    </NuxtLayout>
  </div>
</template>

<script setup lang="ts">
// 初始化认证状态
const authStore = useAuthStore()

// 在客户端初始化时恢复登录状态
onMounted(() => {
  authStore.init()
})

// 页面元信息
useHead({
  htmlAttrs: {
    lang: 'zh-CN',
  },
})
</script>


